class ChannelException implements Exception {
  String errorCode = "";

  String errorMsg = "";

  ChannelException();

  factory ChannelException.createUnCatchException() {
    return ChannelException()
      ..errorMsg = "-1"
      ..errorCode = "error";
  }

  factory ChannelException.create(errorCode, errorMsg) {
    return ChannelException()
      ..errorMsg = errorMsg
      ..errorCode = errorCode;
  }

  factory ChannelException.createUnImplementationException() {
    return ChannelException()
      ..errorMsg = "UnImplementationException"
      ..errorCode = "-1";
  }

  factory ChannelException.createCallNativeError() {
    return ChannelException()
      ..errorMsg = "CallNativeException"
      ..errorCode = "-1";
  }
}
